<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>校准结果</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    {% block styles %}
        <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
    {% endblock %}
</head>
<body>
<div>
    {% if flag == '2' %}
        <h3>最终系数计算成功!</h3>
    {% elif flag == '1' %}
        <h3>中间系数计算成功!</h3>
    {% else %}
        <h3 style="color:red">校准异常!</h3>
    {% endif %}
    <h5>数据表格：</h5>
    <table border="1px">
        <tr>
            <th>ITEM_CODE</th>
            <th>StandardPartNO</th>
            <th>dU</th>
            <th>dx</th>
            <th>dy</th>
            <th>dRa</th>
            <th>dR9</th>
            <th>dlm</th>
            <th>dI</th>
        </tr>
    {% for item in d_html_text %}
{#        {% for item in items %}#}
        <tr>
            <td>{{ item.get('ITEM_CODE') }}</td>
            <td>{{ item.get('StandardPartNO') }}</td>
            <td>{{ item.get('dU') }}</td>
            <td>{{ item.get('dx') }}</td>
            <td>{{ item.get('dy') }}</td>
            <td>{{ item.get('dRa') }}</td>
            <td>{{ item.get('dR9') }}</td>
            <td>{{ item.get('dlm') }}</td>
            <td>{{ item.get('dI') }}</td>
        </tr>
{#            {% endfor %}#}
        {% endfor %}
    </table>
</div>
<a href="/">返回</a>
</body>
</html>